<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>좌석 등록</title>
<link href="http://cdn.kendostatic.com/2011.3.1007/styles/kendo.common.min.css" rel="stylesheet"/>
<link href="http://cdn.kendostatic.com/2011.3.1007/styles/kendo.kendo.min.css" rel="stylesheet"/>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.0/jquery.min.js"></script>
<script src="http://cdn.kendostatic.com/2011.3.1007/js/kendo.all.min.js"></script>
<script language='javascript'>
/*
    $(document).ready(function(){
        var theatersDataSource = new kendo.data.DataSource({
            type: "odata",
            serverFiltering: true,
            transport: {
                read: "http://demos.kendoui.com/service/Northwind.svc/theaters"
            }
        });

        var ordersDataSource = new kendo.data.DataSource({
            type: "odata",
            serverFiltering: true,
            transport: {
                read: "http://demos.kendoui.com/service/Northwind.svc/Order_Details?$expand=Order"
            }
        });

        $("#sites").kendoComboBox({
            placeholder: "Select category...",
            dataTextField: "CategoryName",
            dataValueField: "CategoryID",
            dataSource: {
                type: "odata",
                serverFiltering: true,
                transport: {
                    read: "http://demos.kendoui.com/service/Northwind.svc/sites"
                }
            },
            change: function() {
                var value = this.value();

                if (value) {
                    value = parseInt(value);

                    if (isNaN(value)) {
                        return;
                    }

                    theatersDataSource.filter({
                        field: "CategoryID",
                        operator: "eq",
                        value: value
                    });
                    theaters.enable();
                } else {
                    theaters.enable(false);
                }

                theaters.value("");
                orders.value("");
                orders.enable(false);
            }
        });

        var theaters = $("#theaters").kendoComboBox({
            autoBind: false,
            placeholder: "Select product...",
            dataTextField: "ProductName",
            dataValueField: "ProductID",
            dataSource: theatersDataSource,
            change: function() {
                var value = this.value();

                if (value) {
                    value = parseInt(value);

                    if (isNaN(value)) {
                        return;
                    }

                    ordersDataSource.filter({
                        field: "ProductID",
                        operator: "eq",
                        value: value
                    });
                    orders.enable();
                } else {
                    orders.enable(false);
                }

                orders.value("");
            }
        }).data("kendoComboBox");

        var orders = $("#orders").kendoComboBox({
            autoBind: false,
            placeholder: "Select order...",
            dataTextField: "Order.ShipCity",
            dataValueField: "OrderID",
            dataSource: ordersDataSource
        }).data("kendoComboBox");
    });
*/
$(document).ready(function(){
    $("#sites").kendoComboBox({
        dataTextField: "text",
        dataValueField: "value",
        dataSource: [
            { text: "강남8",  value: "kangnam8" },
            { text: "강변11", value: "kangbyun11" }
        ]
    });
});
</script>
</head>
<body>

<!--  조회 부문 -->
<table class="k-content">
<tr>
    <td><label for="sites"> 극장 : </label><input id="sites"/></td>
    <td><label for="theaters"> 상영관 : </label><input id="theaters"/></td>
</tr>
</table>
</body>
</html>